#ifndef _I_PROTO_H
#define _I_PROTO_H
#include "IPlugin.h"
class IProtoDecode : public IPlugin {
public:
    virtual void put(const char *buf,int len) = 0;
    virtual int getPackage(const char *buf,int len) = 0;
};

class IProtoEncode : public IPlugin {
public:
    virtual void encode(const char *buf,int len) = 0;
    virtual void *content() = 0;
    virtual int size() = 0;
    virtual void clear() = 0;
};


#endif // _I_PROTO_H